package com.czl.module_user.adapter

import android.view.View
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.czl.base.binding.command.BindingCommand
import com.czl.base.binding.command.BindingConsumer
import com.czl.base.data.bean.RecordBean
import com.czl.module_user.R
import com.czl.module_user.databinding.ItemIntegralBinding

/**
 *
 * @Description:
 * @Author: XCH
 * @CreateDate: 2021/12/10 11:38
 */
class IntegralAdapter() :
    BaseQuickAdapter<RecordBean, BaseDataBindingHolder<ItemIntegralBinding>>(
        R.layout.item_integral
    ) {

    override fun convert(
        holder: BaseDataBindingHolder<ItemIntegralBinding>,
        item: RecordBean
    ) {
        holder.dataBinding?.apply {
            data = item
            adapter = this@IntegralAdapter
            executePendingBindings()
        }
    }

    val onRenewClick: BindingCommand<Any> = BindingCommand(BindingConsumer {
        if (it is RecordBean) {

        }
    })


}